package edu.sctu.practice.class02.shilaihong.text.text18;

/**
 * Created by admin on 2015/11/1.
 */
public class Car extends Auto {
    public boolean Aircondition;
    public boolean CD;

    public Car(int tires, String color, double load, double speed, boolean Aircondition, boolean CD) {
        super(tires, color, load, speed);
        this.Aircondition = Aircondition;
        this.CD = CD;
    }

    public void upSpeed() {
        System.out.println("开始加速了!");
    }

    public void downSpeed() {
        System.out.println("开始减速了！");
    }

    public void getInfo() {
        System.out.println("轮胎数：" + tires + "\n颜色：" + color + "\n车身重量：" + load + "t\n速度：" + speed + "Km/h\n有空调:" + Aircondition + "\n有CD：" + CD);
    }
}
